<!--
Copyright 2010 HELP Lab @ Washington State University

This file is part of ChemProV (http://helplab.org/chemprov).

ChemProV is distributed under the Open Software License ("OSL") v3.0.
Consult "LICENSE.txt" included in this package for the complete OSL license.
-->
<UserControl x:Class="ChemProV.UI.WorkSpace"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ChemProV_EquationEditor ="clr-namespace:ChemProV.PFD.EquationEditor"
    xmlns:ChemProV_UI_DrawingCanvas="clr-namespace:ChemProV.UI.DrawingCanvas"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:ChemProV_Validation_Feedback="clr-namespace:ChemProV.Validation.Feedback"
    mc:Ignorable="d"
    >

    <!--Where the meat of the application takes place -->
    <Grid x:Name="WorkspaceGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition x:Name="BottomToolBoxRow" Height="150" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <!--drawing canvas -->
        <ScrollViewer
                x:Name="DrawingCanvasScollViewer"
                ScrollViewer.HorizontalScrollBarVisibility="Visible"
                ScrollViewer.VerticalScrollBarVisibility="Visible"
                >
            <ChemProV_UI_DrawingCanvas:DrawingCanvas
            x:Name="DrawingCanvas"
            Grid.Row="0"
            Background="Gray"
            Width="2000"
            Height="2000" >
            </ChemProV_UI_DrawingCanvas:DrawingCanvas>
        </ScrollViewer>

        <!--resizer wiget -->
        <controls:GridSplitter
            x:Name="GridSplitter"
			Grid.Row="1"
			HorizontalAlignment="Stretch"
			VerticalAlignment="Center"
			Background="LightGray"/>

        <!--feedback / equation window -->
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <ChemProV_Validation_Feedback:FeedbackWindow x:Name="FeedbackWindow"/>
            <ChemProV_EquationEditor:EquationEditor Grid.Column="1" x:Name="EquationEditor"/>
        </Grid>
    </Grid>
</UserControl>